
src_file := iup_main.c image_rc.c crossdevice.cpp hid.c device.c pipe.c SysTick.c rgblinkProtocol.c util.c rgblink_device.cpp cross_serial_port.cpp windows_serial_port.cpp DelayCall.c UDPServer.cpp UDPDevice.cpp app_ico.o


iup_hid: $(src_file)
	g++ -static -mwindows -o iup_hid $(src_file) -liup -lgdi32 -lcomdlg32 -lcomctl32 -luuid -loleaut32 -lole32 -lsetupapi -lhid -lWS2_32  -L./iup -I ./iup/include 
    
debug: $(src_file) 
	g++ -static -o iup_hid $(src_file) -liup -lgdi32 -lcomdlg32 -lcomctl32 -luuid -loleaut32 -lole32 -lsetupapi -lhid -lWS2_32 -L./iup -I ./iup/include 

app_ico.o: app_ico.rc app_ico.ico
	windres app_ico.rc app_ico.o
	
.PHONY: clean

clean: 
	del iup_hid.exe
